﻿using System.Collections.Generic;
using DomainModel;

namespace Repository.Abstract
{
    public interface IUserRepository : IRepository<User>
    {
        User GetUserByLogin(string login);
        User GetUserByEmail(string email);
        int GetCountNotApprovedUsers();
        IEnumerable<User> GetUsersByGroup(Group group, bool approvedOnly = true);
        IEnumerable<User> GetUsersByRole(Role role, bool approvedOnly = true);
        IEnumerable<User> GetStudentsWithoutParent();
        User GetParent(User user);
    }
}